package com.skyline.wizard.task;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;

import com.skyline.wizard.indexer.Indexer;
import com.skyline.wizard.searcher.Searcher;
import com.skyline.wizard.type.SeDocType;

public class ArticleUpdateTask extends BaseUpdateTask {

	private static final Log logger = LogFactory.getLog(ArticleUpdateTask.class);

	@Value("${wizard.updateArticleNewDoc}")
	private Boolean updateArticleNewDoc;

	@Value("${wizard.updateArticleUpdatedDoc}")
	private Boolean updateArticleUpdatedDoc;

	@Value("${wizard.updateArticleDeletedDoc}")
	private Boolean updateArticleDeletedDoc;

	@Autowired
	private Indexer articleIndexer;
	
	public void run() {
		super.run(logger, SeDocType.ARTICLE, updateArticleNewDoc, updateArticleUpdatedDoc, updateArticleDeletedDoc,
				articleIndexer);
	}
}
